Decide automatically whether to use COFF or ELF.
authorRichard M. Stallman <rms@gnu.org>
Mon, 22 Mar 1993 19:50:35 +0000 (19:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 22 Mar 1993 19:50:35 +0000 (19:50 +0000)
src/s/dgux.h

index 437e1106f78eb9f290dd4939e8cd61483a8cc48e..47f5e2f6952247829759c50c279601eeb52eb5ca 100644 (file)
@@ -118,11 +118,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* If your system uses COFF (Common Object File Format) then define the
    preprocessor symbol "COFF".
 
-   DGUX can use either COFF or ELF.  To use ELF format, define ELF.  */
+   DGUX can use either COFF or ELF; the default is ELF.
+   To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
+   environment variable.   */
 
-#ifndef ELF
+#if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
+#undef ELF
+#ifndef COFF
 #define COFF
-#endif
+#endif  /* COFF */
+#else   /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
+#undef COFF
+#ifndef ELF
+#define ELF
+#endif  /* ELF */
+#endif  /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
 
 #ifndef COFF /* People will probably find this apparently unreliable
                till the NFS dumping bug is fixed.  */